<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

/**
 * 用户角色表
 * Class CreateRolesTable
 */
class CreateRolesTable extends Migration
{
		/**
		 * 角色表迁移
		 * Run the migrations.
		 *
		 * @return void
		 */
		public function up()
		{
				Schema::create('roles', function(Blueprint $table)
				{
						$table->increments('id')->comment('表主键，自增');
//						$table->unsignedInteger('tag')->comment('角色标识');
						$table->string('name', 20)->comment('角色名');
						$table->string('label', 20)->comment('角色名，中文形式');
				});
		}

		/**
		 * 角色表数据库回滚
		 * Reverse the migrations.
		 *
		 * @return void
		 */
		public function down()
		{
				Schema::drop('roles');
		}

}
